{layout name="layout" /}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            课程列表
            <small>您目前所选课程</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
            <li class="active">课程列表</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <section class="col-lg-6 connectedSortable">
                <h4><strong >添加班级</strong></h4>
                <form action="/index/Cla/addClass" method="post">
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入班级名称" name="className">
                    </div>
                    <div class="form-group has-feedback">
                        <input type="text" class="form-control" placeholder="请输入班级描述" name="classDescribe">
                    </div>

                    <div class="row">
                        <!-- /.col -->
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">添加</button>
                        </div>
                        <!-- /.col -->
                    </div>
                </form>
            </section>
            <section class="col-lg-6 connectedSortable">
                <h4><strong >班级列表</strong></h4>
                <!-- Chat box -->
                <div  class="form-control" style="height: 400px; overflow:scroll">
                    <div style="border: 1px  #000000; width: 90%; margin: 0 auto;">
                        <div class="box">
                            <div class="box-body">
                                <table id="example2" class="table table-bordered table-hover">
                                    <thead>
                                    <tr >
                                        <td class="col-xs-3">ID</td>
                                        <td class="col-xs-3">班级名称</td>
                                        <td class="col-xs-3">班级描述</td>
                                        <td class="col-xs-3">查看</td>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach($result as $row): ?>
                                    <tr >
                                        <td class="col-xs-3">{$row.class_id}</td>
                                        <td class="col-xs-3">{$row.name}</td>
                                        <td class="col-xs-3">{$row.describe}</td>
                                        <td class="col-xs-3"><a href="/index/Cla/classPerson?class_id={$row.class_id}">点击进入</a></td>
                                    </tr>
                                    <?php endforeach; ?>
                                    </tbody>

                                </table>
                            </div>
                        </div>

                    </div>
                </div>
            </section>

        </div>



    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
